﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace MyCastleWindsor.Castle
{
    public class WindsorInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            //单个注册法，还有其他方式
            //ITest为接口，Test为接口的实现类
            container.Register(Component.For<ITest>().ImplementedBy<Test>());
        }
    }
}